//
//  Const.swift
//  mmda
//
//  Created by llt on 2018/4/16.
//  Copyright © 2018年 mmda. All rights reserved.
//

import UIKit


//public enum TabItemType {
//    
//    case ScenicItem  // 景点
//    case CityTourItem //城市导览
//    case GuiderItem //导游
//    case ActionItem//活动
//    case RaidersItem//攻略
//    case TicketsItem//门票
//    case MapItem // 地图
//    case BusinessItem // 商家
//}

// 常用颜色
let KThemeColor =
     UIColor.hexStringToColor(hexString: "#0ECEA6")
let kThemeDarkColor = UIColor.hexStringToColor(hexString:"#2A2827")
let kThemeRedColor = UIColor.hexStringToColor(hexString:"#E64461")
let kThemeBgColor = UIColor.hexStringToColor(hexString: "#F2F2F2")

let kTitleColor = UIColor.hexStringToColor(hexString:"#222222")
let kSubitleColor = UIColor.hexStringToColor(hexString:"#5A5A5A")
let kContentColor = UIColor.hexStringToColor(hexString:"#222222").withAlphaComponent(0.5)

let kMaskColor = UIColor.hexStringToColor(hexString:"#B7B7B7")
//常用高度
let kScreenHeight = Int(UIScreen.main.bounds.size.height)
let kScreenWidth = Int(UIScreen.main.bounds.size.width)

let kStatusBarHeight = Util.isNotch ? 44 : 20
let kNavigationBarHeight = Util.isNotch ? 88 : 64
let kTableBarHeight = Util.isNotch ? 83 : 49
let kBottomHeight = Util.isNotch ?  34 : 0

let kPerPage = 10

let thumbImageWidth = 300



//判断机型
let ISiPhone4 = UIScreen.main.currentMode?.size.equalTo(CGSize(width: 640, height: 960)) ?? false
let ISiPhone5 = UIScreen.main.currentMode?.size.equalTo(CGSize(width: 640, height: 1136)) ?? false
let ISiPhone6 = UIScreen.main.currentMode?.size.equalTo(CGSize(width: 750, height: 1334)) ?? false
let ISiPhone6p = UIScreen.main.currentMode?.size.equalTo(CGSize(width: 1242, height: 2208)) ?? false


let ISiPad = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad

//系统版本号
let kSystemVersion = Double(UIDevice.current.systemVersion)!

let kiOS10Later = kSystemVersion > 10.0
let kiOS11Later = kSystemVersion > 11.0
let kiOS12Later = kSystemVersion > 12.0

//App版本号
let kVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString")
let kVersionBuild = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion")

//字体
let fontName = "PingFang-SC-Regular"

let kFont10 = UIFont(name: fontName, size: 10)
let kFont12 = UIFont(name: fontName, size: 12)
let kFont14 = UIFont(name: fontName, size: 14)
let kFont17 = UIFont(name: fontName, size: 17)

//let kDomain = "http://domestic.imguider.com/"
let kDomain = "https://www.imguiderx.com/"
let kSerPath = "xtrip-client/service/"

func LocalizedString(_ key:String) -> String {
    
    return AppManager.share.localizedString(key)
}
